﻿<html>
<head>
	<title>运单管理</title>
	<meta http-equiv="Content-Type" content="text/html;">
	<link rel=stylesheet href="../../resources/css/styles.css">

<script type="text/javascript" src="../../resources/calendar/calendar.js"></script>
<script type="text/javascript" src="../../resources/calendar/calendar-setup.js"></script>
<script type="text/javascript" src="../../resources/calendar/lang/calendar-en.js"></script>
<LINK title=winter media=all href='../../resources/calendar/css/calendar.css' type=text/css rel=stylesheet>

<script src="../../resources/js/common.js"></script>
<script src="../../resources/js/jquery-1.4.2.min.js"></script>

</head>
<body>
<form name="form1">
<table class="navigation">
	<tr>
		<td class="navigation">业务处理 >> 运单管理 </td>
	</tr>
</table>
<table class="detail" cellspacing="1">
	<tr class="subtitle1">
		<td colspan=8>查询条件</td>
	</tr>
	<tr class="subtitle1">
		<td class="label">当前网点</td>
		<td class="value">
			<input type="text" name="assetType" size="15" value="" />
		</td>
		<td class="label">录入方式</td>
		<td class="value">
			<input type="text" name="assetId" size="15" value="" />
		</td>
		<td class="label">运单状态</td>
		<td class="value">
			<input type="text" name="jobNumber" size="15" value="" />
		</td>		
		<td class="label">线路</td>
		<td class="value">
			<input type="text" name="jobNumber" size="15" value="" />
		</td>
	</tr>
	
	<tr class="subtitle1">
		<td class="label">托运单号</td>
		<td class="value">
			<input type="text" name="assetType" size="15" value="" />
		</td>
		<td class="label">货号</td>
		<td class="value">
			<input type="text" name="assetId" size="15" value="" />
		</td>
		<td class="label">始发地</td>
		<td class="value">
			<input type="text" name="jobNumber" size="15" value="" />
		</td>		
		<td class="label">目的地</td>
		<td class="value">
			<input type="text" name="jobNumber" size="15" value="" />
		</td>
	</tr>
	
	<tr class="subtitle1">
		<td class="label">收货人</td>
		<td class="value">
			<input type="text" name="assetType" size="15" value="" />
		</td>
		<td class="label">发货人</td>
		<td class="value">
			<input type="text" name="assetId" size="15" value="" />
		</td>
		<td class="label">操作人</td>
		<td class="value">
			<input type="text" name="jobNumber" size="15" value="" />
		</td>		
		<td class="label">装车单号</td>
		<td class="value">
			<input type="text" name="jobNumber" size="15" value="" />
		</td>
	</tr>
	
	<tr class="subtitle1">
        <td class="label" >录入时间</td>
        <td class="value">
			<input type="text" name="fromTime" id="recordFrom" size="15" value="" />
			<img src="../../resources/img/clander.gif" id="recordFromCal" style="cursor:hand">
	    </td>
		<td class="label">到</td>
		<td class="value">
			<input type="text" name="toTime" id="recordTo" size="15" value="" />
			<img src="../../resources/img/clander.gif" id="recordToCal" style="cursor:hand">
			<script type="text/javascript">
		      Calendar.setup({inputField:"recordFrom", button:"recordFromCal"});
		      Calendar.setup({inputField:"recordTo", button:"recordToCal"});
	        </script>
		</td>			
	
		<td class="label">托运时间</td>
        <td class="value"> 
						<input type="text" name="fromTime" id="shipFm" size="15" value="" />
			<img src="../../resources/img/clander.gif" id="shipFmCal" style="cursor:hand">
		</td>
		<td class="label">到</td>
		<td class="value">
			<input type="text" name="toTime" id="shipTo" size="15" value="" />
			<img src="../../resources/img/clander.gif" id="shipToCal" style="cursor:hand">
			<script type="text/javascript">
		      Calendar.setup({inputField:"shipFm", button:"shipFmCal"});
		      Calendar.setup({inputField:"shipTo", button:"shipToCal"});
	        </script>
		</td>
	  </tr>
	  
	  <tr class="subtitle2">
			<td class="button" colspan=8>
					<input type="button" name="search" value="查询运单" id="search" />
					<input type="button" name="create" value="运单录入" id="create" onclick="location.href='CreateShippingOrder.html'"/>
			</td>
	  </tr>
</table>
<br>
<div id="result" style="display:none">

<table class="detail">
  <tr class="subtitle1">
    <td>运单 - 1</td>
  </tr>
</table>

<div class="nowraptable">
<table class="detail" cellspacing="1">
	
	<tr class="tablehead">
		<td><input type='checkbox' id='selectall' onclick="selectAllCheckBox('shippingOrder', this.checked)"/><label for="selectall">全选</label></td>
		<td>托运单号</td>
		<td>运单状态</td>
		<td>托运日期</td>
		<td>货号</td>
		<td>件数</td>
		<td>收货人</td>
		<td>收货人电话</td>
		<td>品名包装</td>
		<td>始发地</td>
		<td>目的地</td>
		<td>托运人</td>
		<td>托运人电话</td>
		<td>付款方式</td>
		<td>收款人</td>
		<td>发车时间</td>
		<td>车牌号</td>
		<td>装车单号</td>
		<td>承运司机</td>
		<td>司机电话</td>
		<td>操作员</td>
		<td>录入时间</td>
	</tr>
	<tr class="odd">
		<td><input type='checkbox' name='shippingOrder'/></td>
		<td><a href="ViewShippingOrder.html" target="_blank">106100</a></td>
		<td>未配载</td>
		<td>2009-06-12 15:00</td>
		<td></td>
		<td>1</td>
		<td>收货人1</td>
		<td>010-84717424</td>
		<td>饼干:纺织袋</td>
		<td>大连</td>
		<td>北京</td>
		<td>Louis</td>
		<td>010-84717424</td>
		<td>现金</td>
		<td>Bruce</td>
		<td>2009-06-12 15:00</td>
		<td>辽B-A66666</td>
		<td>111111</td>
		<td>Bruce</td>
		<td>010-84717424</td>
		<td>Bruce</td>
		<td>2009-06-12 15:00</td>
	</tr>
</table>
</div>

<table class="detail">
  <tr class="subtitle2">
	<td class="button">
	  <input type="button" id="addToStowage" value="添加" onclick="location.href='../stowage/CreateStowage.html'"/>
	  <input type="button" id="update" value="修改" onclick="location.href='UpdateShippingOrder.html'"/>
	  <input type="button" id="delete" value="删除"/>
	  <input type="button" id="print" value="导出Excel"/>
	</td>
  </tr>
</table>
</div>
</form>

<script>
  function getQueryString(name) {      
    var reg = new RegExp("(^|&)"+     name     +"=([^&]*)(&|$)");      
    var r = window.location.search.substr(1).match(reg);      
    if (r!=null){
	  return unescape(r[2]);
	} 
	return null;      
  }
  
  function display(){
    var stowage = getQueryString("stowage");
    if(stowage=="1"){
	  $("#create").css("display", "none");
	  $("#update").css("display", "none");
	  $("#delete").css("display", "none");
	  $("#print").css("display", "none");
    } else{
	  $("#addToStowage").css("display", "none");
	}
  }
  
  display();
</script>


</body>
</html>

